<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- 
    
-->
<hibernate-mapping>
    <class name="${classFullName}" table="${tableName?lower_case}">
	<id name="${pkField.name}" type="${pkField.type?lower_case}">
           <column name="${pkField.name}" />
           <!--SQLSERVER
           <generator class="identity" />
           -->
           <!-- MYSQL-->
           <generator class="increment" />
           
	</id>
<#foreach field in fields?if_exists>
<#if field.name != pkField.name>
	<property name="${field.name}" type="${field.type?lower_case}">
	   <column name="${field.name}" not-null="${field.isNull}" />
	</property>
</#if>
</#foreach>
    </class>
</hibernate-mapping>
